|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnegotiator.Timeline
negotiator.ContinuousTimeline
public class ContinuousTimeline
A time line, running from t = 0 (start) to t = 1 (deadline). The timeline renormalizes real time.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class negotiator.Timeline |
|---|
Timeline.Type |
| Field Summary | |
|---|---|
protected long |
startTime
|
| Fields inherited from class negotiator.Timeline |
|---|
hasDeadline, paused |
| Constructor Summary | |
|---|---|
ContinuousTimeline(int totalSecs)
Creates a timeline with a deadline of totalSeconds number of seconds. |
|
| Method Summary | |
|---|---|
double |
getCurrentTime()
|
double |
getElapsedMilliSeconds()
Gets the elapsed time in seconds. |
double |
getElapsedSeconds()
Gets the elapsed time in seconds. |
double |
getTime()
Gets the time, running from t = 0 (start) to t = 1 (deadline). |
long |
getTotalMiliseconds()
Gets the total negotiation time in miliseconds |
long |
getTotalSeconds()
Gets the total negotiation time in seconds |
double |
getTotalTime()
|
void |
printElapsedSeconds()
Prints time in seconds |
void |
printTime()
Prints time, running from t = 0 (start) to t = 1 (deadline). |
| Methods inherited from class negotiator.Timeline |
|---|
getType, isDeadlineReached, isPaused, pause, resume |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final long startTime
| Constructor Detail |
|---|
public ContinuousTimeline(int totalSecs)
totalSeconds number of seconds.
| Method Detail |
|---|
public double getElapsedSeconds()
getTime() for a more generic version.
public double getElapsedMilliSeconds()
getTime() for a more generic version.
public long getTotalMiliseconds()
public long getTotalSeconds()
public void printElapsedSeconds()
public void printTime()
printTime in class Timelinepublic double getTime()
Agent#wait(double) for pausing the agent.
getTime in class Timelinepublic double getTotalTime()
getTotalTime in class Timelinepublic double getCurrentTime()
getCurrentTime in class Timeline
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||